#ifndef FREE_NEHE_H
#define FREE_NEHE_H

#include "precom.h"

#include <ft2build.h>
#include <freetype/freetype.h>
#include <freetype/ftglyph.h>
#include <freetype/ftoutln.h>
#include <freetype/fttrigon.h>

#include <string>
#include <vector>
#include <stdexcept>

namespace freetype {

	using std::vector;
	using std::string;

	struct font_data {
		float h;
		unsigned int * textures;
		unsigned int list_base;

		void init(const char* fname, unsigned int h);
		void clean();
	};

	void print(const struct font_data &ft_font, float x, float y, const char *fmt, ...);

}

#endif //FREE_NEHE_H